package com.ylx.service;

import com.ylx.pojo.User;
import com.ylx.util.SqlSessionFactoryUtils;
import org.apache.ibatis.session.SqlSessionFactory;

@Autowired
public interface UserService {
    SqlSessionFactory sqlSessionFactory= SqlSessionFactoryUtils.getSqlSessionFactory();


    User select(String username,String password,String role);

    User select1 (String username,String password );


        User selectByUsername(String username);


         void   add(User user);


           //更换头像
          int updateZp(User user);


    User selectUserByUid(String uid);



}
